/*
 * Copyright (c) 2025 Huawei Device Co., Ltd.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#ifndef FOUNDATION_ACE_FRAMEWORKS_CORE_COMPONENTS_NG_PATTERNS_TIME_PICKER_TIME_PICKER_MODEL_STATIC_H
#define FOUNDATION_ACE_FRAMEWORKS_CORE_COMPONENTS_NG_PATTERNS_TIME_PICKER_TIME_PICKER_MODEL_STATIC_H

#include "core/components_ng/pattern/time_picker/timepicker_model.h"
#include "core/components_ng/pattern/time_picker/timepicker_model_ng.h"

namespace OHOS::Ace::NG {
class ACE_EXPORT TimePickerModelStatic {
public:
    static void SetHasSecond(FrameNode* frameNode, bool hasSecond);
    static void SetDigitalCrownSensitivity(FrameNode* frameNode, const std::optional<int32_t>& valueOpt);
    static void SetChangeEvent(FrameNode* frameNode, TimeChangeEvent&& onChange);
    static void SetSelectedTime(FrameNode* frameNode, const int64_t& value);
    static void SetOnChange(FrameNode* frameNode, TimeChangeEvent&& onChange);
    static void SetOnEnterSelectedArea(FrameNode* frameNode, TimeChangeEvent&& onEnterSelectedArea);
    static void SetEnableCascade(FrameNode* frameNode, const std::optional<bool>& isEnableCascade);
    static void SetLoop(FrameNode* frameNode, const std::optional<bool>& loop);
    static void SetUseMilitaryTime(FrameNode* frameNode, const std::optional<bool>& isUseMilitaryTime);
    static void ResetDateTimeOptions(FrameNode* frameNode);
};
} // namespace OHOS::Ace::NG
#endif // FOUNDATION_ACE_FRAMEWORKS_CORE_COMPONENTS_NG_PATTERNS_TIME_PICKER_TIME_PICKER_MODEL_STATIC_H
